<?php
	
namespace Home\Model;
use Think\Model\ViewModel;	

/**
 * 问题模型
 */
class AnswerinfoModel extends ViewModel {
	public $table='answer';
	protected $viewFields=array(
		'answer'=>array(
			'content','time','uid','time'=>'atime',
			'_type'=>'INNER',
			),
		'ask'=>array('asid','answer','_on'=>'ask.asid=answer.asid'),
		'category'=>array('cname','_on'=>'category.cid=ask.cid')
	);
}

	
